package com.tcm.core.mapper;

import com.tcm.core.domain.entity.Department;

import java.util.List;

public interface DepartmentMapper {
    int deleteById(Long id);

    int deleteLogicById(Long id);

    int insert(Department record);

    Department findById(Long id);

    int updateById(Department record);

    /**
     * 查詢所有科室
     */
    List<Department> listDepartment();

    /**
     * 下一級科室
     * @param parentId 父类id
     */
    List<Department> listChild(Long parentId);


}